import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions'
import mutations from './mutations'
import getters from  './getters'

Vue.use(Vuex);

const state = {
  count:1,
  list:[], //购物车的数组,
  shop_List:[
    {
      id:'1',
      name:'鱼香肉丝',
      price:18
    },
    {
      id:'2',
      name:'金绛肉丝',
      price:13
    },
    {
      id:'3',
      name:'蒜菜炒肉丝',
      price:17
    },
    {
      id:'4',
      name:'辣椒肉丝',
      price:15
    }
  ],//商品列表
};

export default new Vuex.Store({
  state,actions,mutations,getters
})
